import request from '@/utils/request'

// 查询中奖明细列表
export function listLotteryPrize(query) {
  return request({
    url: '/prod-api/activity/lotteryPrize/list',
    method: 'get',
    params: query
  })
}

// 查询中奖明细详细
export function getLotteryPrize(prizeUid) {
  return request({
    url: '/prod-api/activity/lotteryPrize/' + prizeUid,
    method: 'get'
  })
}

// 新增中奖明细
export function addLotteryPrize(data) {
  return request({
    url: '/prod-api/activity/lotteryPrize',
    method: 'post',
    data: data
  })
}

// 修改中奖明细
export function updateLotteryPrize(data) {
  return request({
    url: '/prod-api/activity/lotteryPrize',
    method: 'put',
    data: data
  })
}

// 删除中奖明细
export function delLotteryPrize(prizeUid) {
  return request({
    url: '/prod-api/activity/lotteryPrize/' + prizeUid,
    method: 'delete'
  })
}
